<% layout("/WEB-INF/view/console/skins/skin_2/layout.html", {}) {
%>
<div class="row">
    <div class="col-md-12">
        <div class="widget-container fluid-height clearfix">
            <div class="widget-content padded clearfix">
                <div class='row'>
                    <div class='col-md-12'>
                        <form name="boProxyPayLog_form" id="boProxyPayLog_form" class='form-inline'>
                            <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='订单id'  >订单id：</label>
 <input  onkeyup='boProxyPayLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='payLogOrderId' name='payLogOrderId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='用户id'  >用户i...：</label>
 <input  onkeyup='boProxyPayLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='payLogProxyId' name='payLogProxyId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='支付类型' >支付类型：</label>
 <select class="form-control" id="payLogPayType" name="payLogPayType">
 <option  value="">请选择...</option>
 	<option  value="1">支付</option>
 	<option  value="2">退款</option>
 	<option  value="3">取消</option>
 </select>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='支付平台' >支付平台：</label>
 <select class="form-control" id="payLogPlatformType" name="payLogPlatformType">
 <option  value="">请选择...</option>
 	<option  value="1">支付宝</option>
 	<option  value="2">微信</option>
 </select>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='操作金额'  >操作金额：</label>
 <input  onkeyup='boProxyPayLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='payLogMoney' name='payLogMoney' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='备注'  >备注：</label>
 <input  onkeyup='boProxyPayLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='payLogRemark' name='payLogRemark' placeholder=''>
 </div>
 
                        </form>
                    </div>
                </div>
                <div class='row'>
                    <div align="center">
                        <button type='button' class='btn btn-default' id='boProxyPayLogQuerySearch'>查询</button>
                        <button type='button' class='btn btn-default' id='boProxyPayLogReset'>重置</button>
                    </div>
                </div>

                     <div class='row'>
                              <div class='col-md-12'>
                                  <table id="boProxyPayLog" data-toggle="table"
                                         data-url="${ctxPath}/console/bo_proxy_pay_log/json"
                                         data-pagination="true"
                                         data-query-params="boProxyPayLogLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true"
                                         data-toolbar="#boProxyPayLogToolbar">
                                      <thead>
                                      <tr>
                                           <th data-checkbox="true"></th>
                                            <th data-field='payLogId' data-visible='false'>ID</th>
                                          <th data-sortable='true' data-field='createTime' data-formatter="consoleTableDateFormat">创建时间</th>
  <th data-sortable='true' data-field='payLogOrderId'>订单id</th>
  <th data-sortable='true' data-field='payLogProxyId'>用户id</th>
  <th data-field='payLogPayType' data-sortable='true' data-formatter='boProxyPayLogpay_log_pay_typeFormatter'>支付类型</th>
  <th data-field='payLogPlatformType' data-sortable='true' data-formatter='boProxyPayLogpay_log_platform_typeFormatter'>支付平台</th>
  <th data-sortable='true' data-field='payLogMoney'>操作金额</th>
  <th data-sortable='true' data-field='payLogRemark'>备注</th>

                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     var boProxyPayLogConsoleGrid =new consoleGrid({table_id:"boProxyPayLog"});
     boProxyPayLogConsoleGrid.init();
    function boProxyPayLogLoadParam(params){
        params.query=boProxyPayLogQueryString();

        return params;
    }
     function boProxyPayLogQueryString() {
         var objQuery = new Object();
                objQuery.payLogOrderId=$('#payLogOrderId').val()==''?null:$('#payLogOrderId').val(); 
     objQuery.payLogProxyId=$('#payLogProxyId').val()==''?null:$('#payLogProxyId').val(); 
     objQuery.payLogPayType=$('#payLogPayType').val()==''?null:$('#payLogPayType').val(); 
     objQuery.payLogPlatformType=$('#payLogPlatformType').val()==''?null:$('#payLogPlatformType').val(); 
     objQuery.payLogMoney=$('#payLogMoney').val()==''?null:$('#payLogMoney').val(); 
     objQuery.payLogRemark=$('#payLogRemark').val()==''?null:$('#payLogRemark').val(); 
         var queryString = JSON.stringify(objQuery);
         return queryString;
     }

     function boProxyPayLogpay_log_pay_typeFormatter(value) 
   { 
       var showValue=''; 
       switch(value+''){
       case '1': 
       showValue = '支付';
       break;
       case '2': 
       showValue = '退款';
       break;
       case '3': 
       showValue = '取消';
       break;
       }
    if(showValue.indexOf('不')!=-1||showValue.indexOf('否')!=-1||showValue.indexOf('禁')!=-1){    
       return '<span class="label label-warning">'+showValue+'</span>';
   }else{
       return '<span class="label label-info">'+showValue+'</span>';
   }
   }
 function boProxyPayLogpay_log_platform_typeFormatter(value) 
   { 
       var showValue=''; 
       switch(value+''){
       case '1': 
       showValue = '支付宝';
       break;
       case '2': 
       showValue = '微信';
       break;
           case '3':
               showValue = '线下';
               break;
       }
    if(showValue.indexOf('不')!=-1||showValue.indexOf('否')!=-1||showValue.indexOf('禁')!=-1){    
       return '<span class="label label-warning">'+showValue+'</span>';
   }else{
       return '<span class="label label-info">'+showValue+'</span>';
   }
   }

 </script>
<%} %>
 